Lang="GRADLE" ' "JAVA" "M2"
HOME="E:\gradle-3.2"

Lang_HOME=Lang & "_HOME"
bin=HOME & "\bin;"
'bin="%" & Lang_HOME & "%\bin;"
Set SysEnv = CreateObject("WScript.Shell").Environment("System")
path=SysEnv("path")
if InStr(path,bin)=0 then SysEnv("path")=bin & path
SysEnv(Lang_HOME)=HOME
'SysEnv.Remove(Lang_HOME)